<?php

class Model{
    
    var $loader;
    /**
     * 
     *
     * @var SP_DB
     */
    var $db;
    /**
     * 
     *
     * @var SP_Auth
     */
    var $auth;
    var $config;
    
    function Model(){
        $this->loader =& Loader::instance();
        $this->db =& Loader::database('db');
        $this->config =& Loader::config();

        if($this->config['auth_open']){
            $this->auth =& Loader::lib('auth');
        }
    }
}